/*
 * DRACOON API
 * REST Web Services for DRACOON<br><br>This page provides an overview of all available and documented DRACOON APIs, which are grouped by tags.<br>Each tag provides a collection of APIs that are intended for a specific area of the DRACOON.<br><br><a title='Developer Information' href='https://developer.dracoon.com'>Developer Information</a>&emsp;&emsp;<a title='Get SDKs on GitHub' href='https://github.com/dracoon'>Get SDKs on GitHub</a><br><br><a title='Terms of service' href='https://www.dracoon.com/terms/general-terms-and-conditions/'>Terms of service</a>
 *
 * OpenAPI spec version: 4.45.1
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package ch.cyberduck.core.sds.io.swagger.client.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
/**
 * User Authentication Data Update Request
 */
@Schema(description = "User Authentication Data Update Request")

public class UserAuthDataUpdateRequest {
  @JsonProperty("method")
  private String method = null;

  @JsonProperty("login")
  private String login = null;

  @JsonProperty("adConfigId")
  private Integer adConfigId = null;

  @JsonProperty("oidConfigId")
  private Integer oidConfigId = null;

  public UserAuthDataUpdateRequest method(String method) {
    this.method = method;
    return this;
  }

   /**
   * Authentication method    Authentication methods:  * &#x60;basic&#x60;  * &#x60;active_directory&#x60;  * &#x60;radius&#x60;  * &#x60;openid&#x60;
   * @return method
  **/
  @Schema(description = "Authentication method    Authentication methods:  * `basic`  * `active_directory`  * `radius`  * `openid`")
  public String getMethod() {
    return method;
  }

  public void setMethod(String method) {
    this.method = method;
  }

  public UserAuthDataUpdateRequest login(String login) {
    this.login = login;
    return this;
  }

   /**
   * User login name
   * @return login
  **/
  @Schema(description = "User login name")
  public String getLogin() {
    return login;
  }

  public void setLogin(String login) {
    this.login = login;
  }

  public UserAuthDataUpdateRequest adConfigId(Integer adConfigId) {
    this.adConfigId = adConfigId;
    return this;
  }

   /**
   * ID of the user&#x27;s Active Directory.
   * @return adConfigId
  **/
  @Schema(description = "ID of the user's Active Directory.")
  public Integer getAdConfigId() {
    return adConfigId;
  }

  public void setAdConfigId(Integer adConfigId) {
    this.adConfigId = adConfigId;
  }

  public UserAuthDataUpdateRequest oidConfigId(Integer oidConfigId) {
    this.oidConfigId = oidConfigId;
    return this;
  }

   /**
   * ID of the user&#x27;s OIDC provider.
   * @return oidConfigId
  **/
  @Schema(description = "ID of the user's OIDC provider.")
  public Integer getOidConfigId() {
    return oidConfigId;
  }

  public void setOidConfigId(Integer oidConfigId) {
    this.oidConfigId = oidConfigId;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    UserAuthDataUpdateRequest userAuthDataUpdateRequest = (UserAuthDataUpdateRequest) o;
    return Objects.equals(this.method, userAuthDataUpdateRequest.method) &&
        Objects.equals(this.login, userAuthDataUpdateRequest.login) &&
        Objects.equals(this.adConfigId, userAuthDataUpdateRequest.adConfigId) &&
        Objects.equals(this.oidConfigId, userAuthDataUpdateRequest.oidConfigId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(method, login, adConfigId, oidConfigId);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class UserAuthDataUpdateRequest {\n");
    
    sb.append("    method: ").append(toIndentedString(method)).append("\n");
    sb.append("    login: ").append(toIndentedString(login)).append("\n");
    sb.append("    adConfigId: ").append(toIndentedString(adConfigId)).append("\n");
    sb.append("    oidConfigId: ").append(toIndentedString(oidConfigId)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}
